class Student:
    # 姓名
    @property
    def name(self):
        return self._name

    # 学号
    @property
    def stuid(self):
        return self._stuid

    # 英语成绩
    @property
    def english_grade(self):
        return self._english_grade

    # python成绩
    @property
    def python_grade(self):
        return self._python_grade

    # java成绩
    @property
    def java_grade(self):
        return self._java_grade

    # 总成绩成绩
    @property
    def total_grade(self):
        return self.python_grade + self.english_grade + self.java_grade

    def __init__(self, stuid, name, english_grade, python_grade, java_grade):
        self.stuid = stuid
        self.name = name
        self.english_grade = english_grade
        self.python_grade = python_grade
        self.java_grade = java_grade

    @stuid.setter
    def stuid(self, value):
        self._stuid = value

    @name.setter
    def name(self, value):
        self._name = value

    @english_grade.setter
    def english_grade(self, value):
        self._english_grade = float(value)

    @python_grade.setter
    def python_grade(self, value):
        self._python_grade = float(value)

    @java_grade.setter
    def java_grade(self, value):
        self._java_grade = float(value)
